package com.platform.common.authentication.service.impl;

import com.platform.common.authentication.service.AuthUserTokenService;
import com.platform.common.authentication.repository.TokenRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AuthUserTokenServiceImpl implements AuthUserTokenService {

    @Autowired
    private TokenRepository tokenRepository;

    @Override
    public String getAccessToken(String id) throws Exception {
        return tokenRepository.getAccessToken(id);
    }

}
